import request from '@/utils/request'

// 查询互通里程实测数据测试列表
export function listInterchangeMileageStatTest(query) {
  return request({
    url: '/functiontest/InterchangeMileageStatTest/list',
    method: 'get',
    params: query
  })
}

// 查询互通里程实测数据测试详细
export function getInterchangeMileageStatTest(id) {
  return request({
    url: '/functiontest/InterchangeMileageStatTest/' + id,
    method: 'get'
  })
}

// 新增互通里程实测数据测试
export function addInterchangeMileageStatTest(data) {
  return request({
    url: '/functiontest/InterchangeMileageStatTest',
    method: 'post',
    data: data
  })
}

// 修改互通里程实测数据测试
export function updateInterchangeMileageStatTest(data) {
  return request({
    url: '/functiontest/InterchangeMileageStatTest',
    method: 'put',
    data: data
  })
}

// 删除互通里程实测数据测试
export function delInterchangeMileageStatTest(id) {
  return request({
    url: '/functiontest/InterchangeMileageStatTest/' + id,
    method: 'delete'
  })
}

// 导出互通里程实测数据测试
export function exportInterchangeMileageStatTest(query) {
  return request({
    url: '/functiontest/InterchangeMileageStatTest/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}

// 导入互通里程实测数据测试数据
export function importInterchangeMileageStatTest(data) {
  return request({
    url: '/functiontest/InterchangeMileageStatTest/importData',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 下载互通里程实测数据测试导入模板
export function importTemplateInterchangeMileageStatTest() {
  return request({
    url: '/functiontest/InterchangeMileageStatTest/importTemplate',
    method: 'get',
    responseType: 'blob'
  })
}

// 实测单位批量审核
export function fieldAuditInterchangeMileageStatTestBatch() {
  return request({
    url: '/functiontest/InterchangeMileageStatTest/fieldAudit/batch',
    method: 'post'
  })
}

// 业主批量审核
export function ownerAuditInterchangeMileageStatTestBatch(data) {
  return request({
    url: '/functiontest/InterchangeMileageStatTest/ownerAudit/batch',
    method: 'post',
    data: data
  })
}

// 中心批量审核
export function centerAuditInterchangeMileageStatTestBatch() {
  return request({
    url: '/functiontest/InterchangeMileageStatTest/centerAudit/batch',
    method: 'post'
  })
}
